cc=g++
PARSER=parser 
DEBUG=debug 
HTTP_SERVER=http_server 
.PHONY:all
all:$(PARSER) $(DEBUG) $(HTTP_SERVER)

$(DEBUG):debug.cc 
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp

$(PARSER):parser.cc
	$(cc) -o $@ $^ -lboost_system -lboost_filesystem -std=c++11
$(HTTP_SERVER):http_server.cc
	$(cc) -o $@ $^ -ljsoncpp -lpthread -std=c++11
.PHONY:clean
clean:
	rm $(PARSER) $(DEBUG) $(HTTP_SERVER)
